package com.example.designpartten.prototype;

import lombok.extern.slf4j.Slf4j;

/**
 * @author hql
 * @date 2020/4/10 14:13
 */
@Slf4j
public class PrototypeClass implements Cloneable {

    @Override
    protected PrototypeClass clone() throws CloneNotSupportedException {
        return (PrototypeClass)super.clone();
    }

    public void test() {
        log.info("原型模式，复制!");
    }
}
